
// Use this for initialization
function Start () {
}

var beep : AudioClip;
// Update is called once per frame
function Update () {
	//for (var i:int; i < SceneManager.Instance().patients_dying; i++)
	if (SceneManager.Instance().mute && audio.isPlaying)	{
		audio.Stop();
	}
	else {
		if (SceneManager.Instance().IsActive()) {
			if (!audio.isPlaying) {
				audio.Play(0);
			}
		} else {
			if (audio.isPlaying)
			{
				audio.Stop();
			}
		}
	}
}

